using DaoHang.Models;

namespace DaoHang.Services
{
    /// <summary>
    /// 网站设置服务接口
    /// </summary>
    public interface ISiteSettingsService
    {
        /// <summary>
        /// 获取网站设置
        /// </summary>
        /// <returns>网站设置对象</returns>
        Task<SiteSettings> GetSiteSettingsAsync();

        /// <summary>
        /// 保存网站设置
        /// </summary>
        /// <param name="settings">网站设置对象</param>
        /// <returns>是否保存成功</returns>
        Task<bool> SaveSiteSettingsAsync(SiteSettings settings);

        /// <summary>
        /// 更新后台管理路由
        /// </summary>
        /// <param name="adminRoute">新的管理路由</param>
        /// <returns>是否更新成功</returns>
        Task<bool> UpdateAdminRouteAsync(string adminRoute);

        /// <summary>
        /// 获取当前的后台管理路由
        /// </summary>
        /// <returns>管理路由</returns>
        Task<string> GetAdminRouteAsync();
    }
} 